#if !defined(AFX_SPRITEVIEW_H__C7B99A1D_22B9_42B7_8995_331317760857__INCLUDED_)
#define AFX_SPRITEVIEW_H__C7B99A1D_22B9_42B7_8995_331317760857__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SpriteView.h : header file
//
#include "SpriteDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CSpriteView view

class CSpriteView : public CScrollView
{
protected:
	CSpriteView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CSpriteView)

// Attributes
public:
	CSpriteDoc* GetDocument();


	typedef CSpriteDoc::TDATA TDATA;
	typedef CSpriteDoc::FCLIP FCLIP;
	typedef CSpriteDoc::FRAME FRAME;
	typedef CSpriteDoc::ACTION ACTION;
	typedef CSpriteDoc::SPRITE SPRITE;

protected:
	CBrush m_brBkgnd;
	CBrush m_brHatch;

protected:
	BOOL	m_bDragging;
	CPoint	m_ptOffset;
	
	int		m_nZoom;
// Operations
public:
	void OnZoomOut();
	void OnZoomIn();
	void OnFlipY(BOOL bFrame);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSpriteView)
	public:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate();     // first time after construct
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CSpriteView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CSpriteView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMakeDn();
	afx_msg void OnMakeUp();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ImageView.cpp
inline CSpriteDoc* CSpriteView::GetDocument()
   { return (CSpriteDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SPRITEVIEW_H__C7B99A1D_22B9_42B7_8995_331317760857__INCLUDED_)
